<%@ page 
	language="java" 
	contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"
    import="java.util.*,entity.*"
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>员工列表</title>
</head>
<body>
	<h1>员工列表</h1>
	<table border="1">
		<tr>
			<td>编号</td>
			<td>姓名</td>
			<td>领导</td>
			<td>入职日期</td>
			<td>部门号</td>
			<td>薪资</td>
			<td>提成</td>
		</tr>
<% 
	List<Emp> list = 
		(List<Emp>)request.getAttribute("list");
%>
		<%for(Emp emp:list){ %>
		<tr>
			<td><%=emp.getEmpno()%></td>
			<td><%=emp.getEname()%></td>
			<td><%=emp.getMgr()%></td>
			<td><%=emp.getHiredate()%></td>
			<td><%=emp.getDeptno()%></td>
			<td><%=emp.getSalary()%></td>
			<td><%=emp.getComm()%></td>
		</tr>
		<%}%>
	</table>
</body>
</html>





